package eteam.aps.systeminterface.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import eteam.aps.common.enumeration.IBaseEnum;

/**
 * 机构类型枚举
 */
public enum OrgTypeEnum implements IBaseEnum<Integer> {
    /**
     * 机构，公司
     */
    Org(0, "公司"),
    /**
     * 部门
     */
    Dept(10, "部门"),
    /**
     * 班组
     */
    Team(20, "班组"),
    /**
     * 技保队/修理所
     */
    PapGroup(30,"技保队/修理所"),
    /**
     * 连队
     */
    CompanyCommander(40,"连队");

    @EnumValue
    @JsonValue
    private int val = 0;

    private String label = "";

    private OrgTypeEnum(int value, String desc) {
        val = value;
        label = desc;
    }

    @Override
    public Integer getValue() {
        return val;
    }

    @Override
    public String getDescription() {
        return label;
    }
}
